@use "color";

.page {
  .header {
    height: 18.67vw;
    width: 100%;
    background: linear-gradient(180deg, #3ecec5d8 0%, #26bcc6 100%);
    border-bottom-left-radius: 40vw 5.33333vw;
    border-bottom-right-radius: 40vw 5.33333vw;
    padding: 0 4.67vw;
    overflow: hidden;
    span {
      font-size: 4.53vw;
      color: #fff;
      display: block;
      margin-top: 2.67vw;
    }
  }
  .search {
    width: 92vw;
    height: 10.67vw;
    margin-top: -7.9vw;
    margin-right: auto;
    margin-left: auto;
    border-radius: 5.87vw;
    background: #ffffff;
    box-shadow: 0 2vw 2.93vw -0.93vw #e0ecfad1;
    padding-left: 6.4vw;
    padding-right: 6.4vw;
    display: flex;
    align-items: center;
    img {
      width: 4.2vw;
      height: 4.2vw;
    }
    span {
      font-size: 3.3vw;
      color: color.$dark;
      padding-left: 1.1vw;
    }
  }
  .ask {
    padding: 0 4vw;
    display: flex;
    justify-content: space-between;
    margin-top: 6.13vw;
    .item {
      display: flex;
      flex-direction: column;
      align-items: center;
      img {
        display: block;
        width: 12.27vw;
        height: 12.27vw;
        object-fit: contain;
      }
      .title {
        color: color.$text_1;
        font-weight: 500;
        font-size: 3.73vw;
        margin-top: 1.33vw;
      }
      .sub_title {
        color: color.$tag;
        font-size: 2.93vw;
        margin-top: 0.53vw;
      }
    }
  }
  .mine {
    padding: 0 8.27vw;
    margin-top: 5.33vw;
    display: flex;
    justify-content: space-between;
    .item {
      display: flex;
      flex-direction: column;
      align-items: center;
      img {
        display: block;
        width: 8.27vw;
        height: 8.27vw;
      }
      span {
        color: color.$text_2;
        font-size: 3.47vw;
        display: block;
        margin-top: 0.67vw;
      }
    }
  }
  .ad {
    padding: 0 4vw;
    margin: 4vw 0;
    height: 26.67vw;
    img {
      width: 100%;
      display: block;
      object-fit: contain;
    }
  }
  .category {
    padding: 0 4vw;
    height: 11.73vw;
    background: #fff;
    display: flex;
    align-items: center;
    width: 100%;
    span {
      color: color.$dark;
      font-size: 3.73vw;
      display: block;
      margin-right: 6.67vw;
      &.active {
        color: color.$text_1;
        font-weight: 500;
        position: relative;
        &::after {
          content: "";
          position: absolute;
          bottom: -3.2vw;
          left: 50%;
          transform: translateX(-50%);
          width: 5.33vw;
          height: 0.8vw;
          background: color.$main;
        }
      }
    }
    &.fixed {
      position: fixed;
      left: 0;
      top: 0;
    }
  }
  .article {
    padding: 0 4vw;
    margin-top: 2.4vw;
    .item {
      padding: 5.6vw 0 4vw 0;
      border-bottom: 1px solid color.$line;
    }
    .meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      .left {
        display: flex;
        align-items: center;
        padding-right: 3.2vw;
      }
      .avatar {
        display: block;
        width: 10.13vw;
        height: 10.13vw;
        object-fit: contain;
        border-radius: 50%;
      }
      .info {
        padding-left: 2.67vw;
        display: flex;
        flex-direction: column;
        span {
          color: color.$text_2;
          font-size: 3.73vw;
        }
        i {
          color: color.$tip;
          font-size: 3.2vw;
          font-style: normal;
          margin-top: 0.67vw;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          width: 56.8vw;
          display: block;
        }
      }
      .attention {
        border-radius: 3.6vw;
        border: 0.27vw solid #2cb5a5;
        width: 17.6vw;
        height: 7.2vw;
        color: #2cb5a5;
        font-size: 3.2vw;
        &.active {
          background: #2cb5a5;
          color: #fff;
        }
      }
    }
    .title {
      color: color.$text_1;
      font-size: 4.27vw;
      font-weight: 500;
      margin: 2.13vw 0 1.6vw 0;
    }
    .tag {
      color: #2cb5a5;
      font-size: 3.2vw;
      margin-bottom: 1.87vw;
    }
    .content {
      color: #6f6f6f;
      font-size: 3.73vw;
      line-height: 6.2vw;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
    .container {
      margin: 2.67vw 0 2.67vw 0;
      display: flex;
      justify-content: space-between;
      img {
        display: block;
        width: 28.27vw;
        height: 28.27vw;
        object-fit: cover;
        border-radius: 4vw;
      }
    }
    .footer {
      span {
        color: color.$tip;
        font-size: 3.2vw;
        margin-right: 4vw;
      }
    }
  }
  .focus {
    width: 100%;
    height: 68.4vw;
    background: color.$bg;
    padding: 0 4vw;
    overflow: hidden;
    .top {
      margin: 4vw 0;
      display: flex;
      justify-content: space-between;
      h4 {
        color: color.$text_1;
        font-size: 3.47vw;
      }
      a {
        color: color.$tip;
        font-size: 3.47vw;
      }
    }
    .container {
      width: 100%;
      overflow-x: auto;
      &::-webkit-scrollbar {
        display: none;
      }
      .inner {
        display: flex;
        flex-wrap: nowrap;
        height: 51.4vw;
        .item {
          width: 35.73vw;
          height: 51.4vw;
          background: #fff;
          border-radius: 5.33vw;
          box-shadow: 0 0 2.93vw 0 #e5e5e533;
          display: flex;
          flex-direction: column;
          align-items: center;
          padding: 4vw;
          margin-right: 2.67vw;
          flex-shrink: 0;
          &:last-child {
            margin-right: 0;
          }
          .avatar {
            width: 15.47vw;
            height: 15.47vw;
            object-fit: cover;
            border-radius: 50%;
          }
          .doctor {
            color: color.$text_1;
            font-size: 3.47vw;
            font-weight: 500;
            margin-top: 2.67vw;
          }
          .hospital,
          .job {
            color: color.$tip;
            font-size: 2.93vw;
            overflow: hidden;
            display: block;
            width: 100%;
            white-space: nowrap;
            text-overflow: ellipsis;
            text-align: center;
          }
          .hospital {
            margin-top: 1.33vw;
          }
          .job {
            margin-top: 0.53vw;
          }
          .focus_btn {
            width: 18.53vw;
            height: 7.47vw;
            border-radius: 3.73vw;
            background: color.$main;
            color: #fff;
            font-size: 3.2vw;
            margin-top: 2.8vw;
          }
        }
      }
    }
  }
  .filler {
    height: 11.73vw;
    width: 100%;
  }
}